package com.xixi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("operation_log")
public class OperationLog {
    private Integer id;
    // 操作人信息
    private Integer operatorId;
    private String operatorName;
    // 1-普通用户 2-管理员
    private String operatorType;
    // 操作内容
    // BUY/ADD/UPDATE/DELETE
    private String operationType;
    // PRODUCT/ORDER/USER
    private String targetType;
    private long costTime;
    // 时间信息
    private LocalDateTime operationTime;
}